package com.lifeng;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * Created by lifeng on 2019/3/18.
 * 多数据源时此句不加会出现循环引用
 * exclude = { DataSourceAutoConfiguration.class }
 */
@EnableAsync
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@MapperScan(basePackages = "com.lifeng.mapper") //扫描mapper接口包
public class ServiceMyBatisStartup {
    public static void main(String[] args) {
        SpringApplication.run(ServiceMyBatisStartup.class, args);
    }
}
